<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@ page import="java.util.ArrayList" %>
<%@ page import="java.util.List" %>
<%@ page import="jman.mode.Vote" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>匿名投票系统</title>
		<meta charset="UTF-8" />
        <meta name="viewport" content="width=device-width, initial-scale=1.0" />
		<link rel="stylesheet" href="/webpro1/zhou/admin/css/bootstrap.min.css" />
		<link rel="stylesheet" href="/webpro1/zhou/admin/css/bootstrap-responsive.min.css" />
		<link rel="stylesheet" href="/webpro1/zhou/admin/css/uniform.css" />
		<link rel="stylesheet" href="/webpro1/zhou/admin/css/select2.css" />		
		<link rel="stylesheet" href="/webpro1/zhou/admin/css/unicorn.main.css" />
		<link rel="stylesheet" href="/webpro1/zhou/admin/css/unicorn.grey.css" class="skin-color" />	
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /></head>

</head>
<body>


<div id="header">
			<h1><a href="./dashboard.html">首页</a></h1>		
		</div>		
		<div id="search">
			<input type="text" placeholder="Search here..." /><button type="submit" class="tip-right" title="Search"><i class="icon-search icon-white"></i></button>
		</div>
		<div id="user-nav" class="navbar navbar-inverse">
            <ul class="nav btn-group">
                
                <li class="btn btn-inverse"><a title="" href="#"><i class="icon icon-cog"></i> <span class="text">设置</span></a></li>
                <li class="btn btn-inverse"><a title="" href="login.html"><i class="icon icon-share-alt"></i> <span class="text">退出</span></a></li>
            </ul>
        </div>
            
		<div id="sidebar">
			<a href="#" class="visible-phone"><i class="icon icon-th-list"></i> Tables</a>
			<ul>				
				<li class="active"><a href="/webpro1/zhou/admin/thadmin.jsp"><i class="icon icon-th"></i> <span>首页</span><span class="label">6</span></a></li>
				
				<li ><a href="/webpro1/zhou/admin/createvote.jsp"><i class="icon icon-th"></i> <span>创建投票</span><span class="label">6</span></a></li>
					
		</div>
		
		<div id="style-switcher">
			<i class="icon-arrow-left icon-white"></i>
			<span>Style:</span>
			<a href="#grey" style="background-color: #555555;border-color: #aaaaaa;"></a>
			<a href="#blue" style="background-color: #2D2F57;"></a>
			<a href="#red" style="background-color: #673232;"></a>
		</div>
		
		<div id="content">
			<div id="content-header">
				<h1>首页</h1>
				<div class="btn-group">
					<a class="btn btn-large tip-bottom" title="Manage Files"><i class="icon-file"></i></a>
					<a class="btn btn-large tip-bottom" title="Manage Users"><i class="icon-user"></i></a>
					<a class="btn btn-large tip-bottom" title="Manage Comments"><i class="icon-comment"></i><span class="label label-important">5</span></a>
					<a class="btn btn-large tip-bottom" title="Manage Orders"><i class="icon-shopping-cart"></i></a>
				</div>
			</div>
			<div id="breadcrumb">
				<a href="#" title="Go to Home" class="tip-bottom"><i class="icon-home"></i> 首页</a>
				<a href="#" class="current">已发起列表</a>
			</div>
			<div class="container-fluid">
				<div class="row-fluid">
					<div class="span12">
						<div class="widget-box">
							<div class="widget-title">
								<span class="icon">
									<i class="icon-th"></i>
								</span>
								<h5>列表</h5>								
							</div>							
					<%
					List<Vote> voteList=new ArrayList<Vote>();
					voteList=(List<Vote>)session.getAttribute("voteList");
					%>					
							
							<div class="widget-content nopadding">
								<table class="table table-bordered table-striped">
									<thead>
										<tr>
											<th>标题</th>
											<th>结果</th>
											<th>发起投票时间</th>											
										</tr>
									</thead>
									<tbody>										
									
								<%for(int i=0;i<voteList.size();++i){%>
<tr>
<td><%= voteList.get(i).getTitle() %></td>
<td><%= voteList.get(i).getResult() %></td>
<td><%= voteList.get(i).getCreat_Time() %></td>
</tr>
<%
}
%>									</tbody>				  
								</table>							
							</div>
						</div>
											
				
				<div class="row-fluid">
					<div id="footer" class="span12">
						2012 &copy; Unicorn Admin. Brought to you by <a href="https://wrapbootstrap.com/user/diablo9983">diablo9983</a>
					</div>
				</div>
			</div>
		</div>
				            
            <script src="/webpro1/zhou/admin/js/jquery.min.js"></script>
            <script src="/webpro1/zhou/admin/js/jquery.ui.custom.js"></script>
            <script src="/webpro1/zhou/admin/js/bootstrap.min.js"></script>
            <script src="/webpro1/zhou/admin/js/jquery.uniform.js"></script>
            <script src="/webpro1/zhou/admin/js/select2.min.js"></script>
            <script src="/webpro1/zhou/admin/js/jquery.dataTables.min.js"></script>
            <script src="/webpro1/zhou/admin/js/unicorn.js"></script>
            <script src="/webpro1/zhou/admin/js/unicorn.tables.js"></script>

</body>
</html>